package commom;

public class ColorAndXY {
    public int x;
    public int y;
    public int rgb;

    public RGB realRgb;

    @Override
    public String toString() {
        return "ColorAndXY{" +
                "x=" + x +
                ", y=" + y +
                ", argb=" + rgb +
                ", rgb=" + RGB.convertArgbToRgb(rgb) +
                '}';
    }

    public ColorAndXY(int x, int y, int rgb) {
        this.x = x;
        this.y = y;
        this.rgb = rgb;
        this.realRgb = RGB.convertArgbToRgb(rgb);
    }
}